<template>
  <vue-office-docx :src="docx" style="height: 100vh;" @rendered="onRendered" />
</template>

<script setup>
import VueOfficeDocx from '@vue-office/docx';
import '@vue-office/docx/lib/index.css';
import {ref} from "vue";

const docx = ref('http://static.shanhuxueyuan.com/test6.docx');

const onRendered = () => {
  //npm install @vue-office/docx
  console.log("渲染完成");
};
</script>